/*
    BibleNotebook - A bible reader software
    Copyright (C) 2014  Williams Fernando Lopez

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
 */

package com.simplebible.objects;

import java.awt.Color;
import java.util.ArrayList;
import java.util.List;
import wl.util.Utils;

/**
 *
 * @author Williams Lopez
 */
public class Preferences extends wl.util.Preferences{


    private static final transient int NORMAL_VIEW = 1;
    private static final transient int DUAL_VIEW = 2;

    

    private String          lastVersion         = "rvr60";
    private String          font                = "Arial";
    private String          lastBook            = "gen";
    private String          lastChapter         = "1";
    private String          lastVerse           = "1";
    private int             lastView            = NORMAL_VIEW;
    private List<String>    lastSearchs         = new ArrayList<String>();
    private boolean         referenciasEnabled  = true;
    private boolean         marcadoresEnables   = true;
    private Color           backgrounColor      = Color.WHITE;
    private Color           foregroundColor     = Color.BLACK;
    private int             fontSize            = 12;
    private boolean         dictionaryEnabled   = true;
    

    private boolean         showWindowButtons   = false;
    private String          style               = "default";
    private boolean         animation           = true;
    private boolean         horizontalLayout    = true;


    public static Preferences getInst(){
        try {
            return getInstance(Preferences.class);
        } catch (Exception e) {
            Utils.printToLog("Error al iniciar las preferencias:"+e.getMessage(), e, Preferences.LOG_LEVEL_ERROR);
        }
        return null;
    }


    public Color getBackgrounColor() {
        return backgrounColor;
    }

    public void setBackgrounColor(Color backgrounColor) {
        this.backgrounColor = backgrounColor;
    }

    public int getFontSize() {
        return fontSize;
    }

    public void setFontSize(int fontSize) {
        this.fontSize = fontSize;
    }

    public Color getForegroundColor() {
        return foregroundColor;
    }

    public void setForegroundColor(Color foregroundColor) {
        this.foregroundColor = foregroundColor;
    }

    public List<String> getLastSearchs() {
        return lastSearchs;
    }

    public void setLastSearchs(List<String> lastSearchs) {
        this.lastSearchs = lastSearchs;
    }

    public String getLastVersion() {
        return lastVersion;
    }

    public void setLastVersion(String lastVersion) {
        this.lastVersion = lastVersion;
    }

    public int getLastView() {
        return lastView;
    }

    public void setLastView(int lastView) {
        this.lastView = lastView;
    }

    public boolean isMarcadoresEnables() {
        return marcadoresEnables;
    }

    public void setMarcadoresEnables(boolean marcadoresEnables) {
        this.marcadoresEnables = marcadoresEnables;
    }

    public boolean isReferenciasEnabled() {
        return referenciasEnabled;
    }

    public void setReferenciasEnabled(boolean referenciasEnabled) {
        this.referenciasEnabled = referenciasEnabled;
    }


    public String getLastBook() {
        return lastBook;
    }

    public void setLastBook(String lastBook) {
        this.lastBook = lastBook;
    }

    public String getLastChapter() {
        return lastChapter;
    }

    public void setLastChapter(String lastChapter) {
        this.lastChapter = lastChapter;
    }

    public String getLastVerse() {
        return lastVerse;
    }

    public void setLastVerse(String lastVerse) {
        this.lastVerse = lastVerse;
    }

    public String getFont() {
        return font;
    }

    public void setFont(String font) {
        this.font = font;
    }

    public boolean isShowWindowButtons() {
        return showWindowButtons;
    }

    public void setShowWindowButtons(boolean showWindowButtons) {
        this.showWindowButtons = showWindowButtons;
    }

    public String getStyle() {
        return style;
    }

    public void setStyle(String style) {
        this.style = style;
    }

    public boolean isAnimation() {
        return animation;
    }

    public void setAnimation(boolean animation) {
        this.animation = animation;
    }

    public boolean isDictionaryEnabled() {
        return dictionaryEnabled;
    }

    public void setDictionaryEnabled(boolean dictionaryEnabled) {
        this.dictionaryEnabled = dictionaryEnabled;
    }

    public boolean isHorizontalLayout() {
        return horizontalLayout;
    }

    public void setHorizontalLayout(boolean horizontalLayout) {
        this.horizontalLayout = horizontalLayout;
    }



    

    

    

    

    

    

    



}
